<template>
  <div>
    <div class="tip">使用其他方式登录</div>
    <div class="use-other" @click="changeLogin">
      <a href="javascript:void (0)" class="use-other"></a>
    </div>
    <div class="box-top flex-center-center">
      <div class="box-item">
        <div class="box-title">
          <van-icon color="#25B900" size="26" name="wechat" /> 微信扫码登录
        </div>
        <div class="qr-code flex-center-center">
          <img src="@/assets/images/showqrcode.jpeg" alt="">
        </div>
        <div class="box-tips">
          <p>下载标书模板 专业标书代写</p>
          <p>上传标书还能获得丰厚的收益</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    changeLogin(){
      this.$emit('changeBtn',1)
    }
  }
}
</script>

<style scoped lang="scss">
.tip{
  width: 120px;
  height: 40px;
  font-size: 12px;
  background: url('@/assets/images/qp.png') no-repeat;
  background-size: 100%;
  background-position: center center;
  line-height: 40px;
  text-align: center;
  color: #F56C6C;
  position: absolute;
  right: 80px;
  top: 20px;
}
.use-other{
  width: 90px;
  height: 90px;
  background: url('@/assets/images/change.png') no-repeat;
  background-size: 100%;
  position: absolute;
  right: 0;
  border-bottom-right-radius: 6px;
}
.box-top{
  width: 500px;
  height: 435px;
  .box-item{
    width: 300px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    .box-title{
      text-align: center;
      width: 100%;
      font-size: 20px;
      margin-top: 50px;
    }
    .qr-code{
      width: 220px;
      height: 220px;
      margin-top: 10px;
      border-radius: 12px;
      background:url('@/assets/images/scan_border.webp') no-repeat;
      background-size: cover;
      img{
        width: 200px;
        height: 200px;
        object-fit: cover;
      }
    }
    .box-tips{
      width: 100%;
      text-align: center;
      margin-top: 10px;
      p{
        font-size: 13px;
        color: #999;
        margin-bottom: 3px;
      }
    }
  }
}
</style>